package org.lds.hotkey.console.business.currhotkey.converter;

import org.lds.hotkey.console.business.currhotkey.entity.CurrHotKey;
import org.lds.hotkey.console.business.currhotkey.model.request.CurrHotKeyBaseDeleteRequest;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
public class CurrHotKeyBaseDeleteRequestToEntityConverter implements Converter<CurrHotKeyBaseDeleteRequest, CurrHotKey> {

    @Override
    public CurrHotKey convert(CurrHotKeyBaseDeleteRequest source) {
        return CurrHotKey.builder()
            .id(source.getId())
            .build();
    }

}


